if(jQuery){
    jQuery(document).ready(function($){

        $("a.infoButton").each(function(){
            $t = $(this);
            $t.click(function(e){
                $trgt = $(e.target);
                $td = $trgt.closest('td');
                activateAsDialog($td);
                return false;
            });
        });

        function activateAsDialog($td){
            $box = $td.find('div.info-box');
            boxWidth = 500;
            $box.dialog({
                modal: true,
                width: boxWidth,
                title: 'About this title',
                close: function(){
                    $(this).dialog('destroy').appendTo($td);
                }
            });
        };


    });
}
